import 'package:flutter/cupertino.dart';

abstract class AdsService {
  //初始化广告
  Future<bool> initAd(String appId);

  void onEventListener();

  //ad助手
  Future<bool> launchTestTools();

  //开屏
  Future<bool> showSplashAd(String posId);

  //插屏
  Future<bool> showInterstitialAd(String posId);

  //激励视频
  Future<bool> showRewardVideoAd(String posId);

  //信息流
  Future<Widget> loadFeedAd(
    String posId, {
    double width = 375,
    double height = 400,
    int count = 1,
    bool isDraw = false,
    bool autoResize = true,
    bool show = false,
  });

  //预加载激励视频
  Future<bool> preloadRewardPosids(List<String> posIds);

  //预加载插屏
  Future<bool> preloadInsertPosids(List<String> posIds);

  //ios
  Future<bool> requestIDFA();
}
